<table>
  <% if f.error_messages.length > 0 %>
    <tr>
    <td colspan="2">
      <%= f.error_messages %>
    </td>
    </tr>
  <% end %>  
  
  <tr>
    <td align="right" width="200"><%= f.label :description %></td>
    <td align="left"><%= f.text_field :description %></td>
  </tr>
  <tr>
    <td align="right" width="200"><%= f.label :priority %></td>
    <td align="left"><%= f.text_field :priority %></td>
  </tr>  
  <tr>
    <td align="right" width="200"><%= f.label :event %></td>
    <td align="left" colspan="1"><%= f.collection_select :event_id, eventList, :id, :title, {:include_blank => true} %> </td>
  </tr>
  <tr>
    <td align="right" width="200"><%= f.label :category %></td>
    <% @categoryList = Category.find(:all) %>
    <td align="left" colspan="1"><%= f.collection_select :category_id, @categoryList, :id, :description, {:include_blank => true} %> </td>
  </tr>  
  <tr>
    <td colspan="2" align="right"><%= f.submit label_text %></td>
  </tr>
</table>
